package unimelb.filesync.common.message;

import org.json.simple.JSONObject;

public class SequenceCompleteNotification implements Jsonable {

    private final long sequenceId;

    public SequenceCompleteNotification(long sequenceId) {
        super();
        this.sequenceId = sequenceId;
    }

    public long getSequenceId() {
        return sequenceId;
    }

    @SuppressWarnings("unchecked")
    @Override
    public String toJson() {
        final JSONObject jsonObject = new JSONObject();
        jsonObject.put("sequenceId", sequenceId);
        return jsonObject.toJSONString();
    }

}
